package com.gklyj.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gklyj.mapper.positionMapper;
import com.gklyj.pojo.Position;
import com.gklyj.service.positionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class positionServiceImpl extends ServiceImpl<positionMapper, Position> implements positionService {
    @Autowired
    positionMapper positionMapper;

    @Override
    public List<Position> searchPositions(Position position) {
        return positionMapper.SearchPositions(position);
    }

    @Override
    public List<Position> listPositionsExcludeAdmin() {
        return positionMapper.ListPositionsExcludeAdmin();
    }

    @Override
    public List<Position> ZpsearchPositions(Position position) {
        return positionMapper.ZpSearchPositions(position);
    }

    @Override
    public List<Position> AdsearchPositions(Position position) {
        return positionMapper.AdSearchPositions(position);
    }

    @Override
    public List<Position> listPositionsAdmin() {
        return positionMapper.ListPositionsAdmin();
    }

    @Override
    public List<Position> ListThisGangwei(String department) {
        return positionMapper.ListThisGangwei(department);
    }

    @Override
    public List<Position> ThisZpGangweiSearchs(Position position) {
        return positionMapper.thisZpGangweiSearchs(position);
    }

    @Override
    public Integer GetGwNumberByTime(String time) {
        return positionMapper.getGwNumberByTime(time);
    }

    @Override
    public Integer GetGangweiNumber() {
        return positionMapper.getGangweiNumber();
    }

    @Override
    public Integer GetOneDayGangweiNumber(String time) {
        return positionMapper.getOneDayGangweiNumber(time);
    }

    @Override
    public Position FindOnePosition(String department, String p_title) {
        return positionMapper.findOnePosition(department,p_title);
    }

    @Override
    public Position FindOnePosition1(String department, String p_title, String name) {
        return positionMapper.findOnePosition1(department,p_title,name);
    }

    @Override
    public boolean AddPositionQuantity(String department, String p_title) {
        return positionMapper.addPositionQuantity(department,p_title);
    }

    @Override
    public boolean ReducePositionQuantity(String department, String p_title) {
        return positionMapper.reducePositionQuantity(department,p_title);
    }
}
